package com.fqh.mapper;

import com.fqh.entity.Login;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserMapper {

    List<Login> checkByUsernameAndPassword(@Param("telephone") String telephone, @Param("pwd") String pwd);

    List<Login> findUsername(String username);

    List<Login> findTelephone(String telephone);

    void addUser(@Param("username") String username, @Param("password") String password, @Param("telephone") String telephone);

    void changePwd(@Param("loginId") Integer loginId, @Param("ped") String pwd) throws Exception;
}
